/*
 * @Author: hongbin
 * @Date: 2022-03-27 23:53:49
 * @LastEditors: hongbin
 * @LastEditTime: 2022-03-28 10:59:27
 * @Description:常量
 */

import { Chart, Component, Element } from "../Icon";

export enum ElementEnum {
  element = 0,
  chart = 1,
  component = 2,
}

export const ElementTypes = {
  element: { type: ElementEnum.element, name: "元素", icon: Element },
  chart: { type: ElementEnum.chart, name: "图表", icon: Chart },
  component: { type: ElementEnum.component, name: "组件", icon: Component },
};

export type TElementItem = typeof ElementTypes[keyof typeof ElementTypes];
